This sample shows how to listen for events that occur in relation to edge-based UI, using the EdgeGesture class.
The sample demonstrates the following scenarios:
- Invoking edge-based UI through touch
- Invoking edge-based UI through the mouse
- Invoking edge-based UI through the keyboard
- Handling a right-click yourself, to bypass the default edge gesture response
To obtain an evaluation copy of Windows 8.1, go to Windows 8.1.
To obtain an evaluation copy of Microsoft Visual Studio 2013, go to Visual Studio 2013.
Note For Windows 8 app samples, download the Windows 8 app samples pack. The samples in the Windows 8 app samples pack will build and run only on Microsoft Visual Studio 2012.
Related topics
Operating system requirements
| Client | |
|---|---|
| Server |
Build the sample
- Download the sample's .zip file using one of the buttons near the top of the page.
- Unzip the downloaded file into a folder on your computer.
- Start Visual Studio 2013 and select File > Open > Project/Solution.
- Go to the folder where you unzipped the sample.
- Find and open the folder named for the sample and one of its programming language subfolders (C#, JS.
- Double-click the Microsoft Visual Studio Solution (.sln) file to open it.
- Select Build > Build Solution to build the sample.
Run the sample
To debug the app and then run it, press F5 or use Debug > Start Debugging. To run the app without debugging, press Ctrl+F5 or use Debug > Start Without Debugging.
How to use the sample
Make an appropriate drag gesture from the top or bottom of the screen, right-click anywhere on the screen with the mouse, or press the Windows logo key + Z. Be aware of the Output section as you perform any of those actions; the events received by the sample due to those actions will be reported there. Be aware that you will not see any edge-based UI appear. In a real-world scenario, your app's response to these events is to show or hide your edge-based UI.